package com.triones.api.entity;

import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 交易模拟
 */
@Data
public class SandBoxTransactionRequestBodyBO {

    @NotBlank(message = "请求流水号不能为空")
    private String requestId;

    @NotBlank(message = "卡ID不能为空")
    private String cardID;

    @NotBlank(message = "cvv信息不能为空")
    private String cvv;

    @NotBlank(message = "卡的有效期不能为空")
    private String expirationDate;

    /**
     * 当交易类型为 void 或 refund 时要填写。
     */
    private String originTransactionId;

    @NotBlank(message = "货币代码不能为空")
    private String txnCurrency;

    @NotBlank(message = "交易金额不能为空")
    private String txnAmount;

    /**
     *  "auth" "void" "refund"
     */
    @NotBlank(message = "交易类型不能为空")
    private String txnType;

    /**
     * 商户类别码
     */
    @NotBlank(message = "mcc不能为空")
    private String mcc;

    //商店名称
    @NotBlank(message = "商店名称不能为空")
    private String merchantName;

    //商店国家
    @NotBlank(message = "商店国家不能为空")
    private String merchantCountry;

    //商店城市
    @NotBlank(message = "商店城市不能为空")
    private String merchantCity;

    //邮编
    @NotBlank(message = "邮编不能为空")
    private String merchantPostcode;
}
